<?php
	 
	if ( ! defined( 'NV_IS_FILE_MODULES' ) ) die( 'Stop!!!' );
	 
	$sql_drop_module = array();
	 
	$sql_drop_module[] = "DROP TABLE IF EXISTS " . $db_config['prefix'] . "_" .$lang . "_" . $module_data . "';";
	 
	$sql_create_module = $sql_drop_module;
	 
	$sql_create_module[] = "CREATE TABLE " . $db_config['prefix'] . "_" . $lang . "_" . $module_data . "' (
	'id' mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
	'title' varchar(255) NOT NULL, PRIMARY KEY ('id')
	) ENGINE=MyISAM DEFAULT CHARSET=utf8";
	$sql="CREATE TABLE `xpath` (
		`id` INT NOT NULL AUTO_INCREMENT ,
		`xpathTithle` VARCHAR( 300 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
		`xpathHead` VARCHAR( 300 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
		`xpathContent` VARCHAR( 300 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
		`xpathImage` VARCHAR( 300 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
		`url` VARCHAR( 300 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
		`domain` VARCHAR( 300 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
		PRIMARY KEY ( `id` )
		) ENGINE = MYISAM ;
		";
	$db->sql_query($sql);
	?>